package com.itshare.video.pojo.po;

import java.io.Serializable;
import java.util.Date;

public class Advertisement implements Serializable {
    private Integer advertisementId;

    private String companyName;

    private String phone;

    private String banner;

    private Integer advertisementPutting;

    private Date createTime;

    private Date updateTime;

    private Date beginTime;

    private Date endTime;

    private Integer deleteStatus;

    private String createBy;

    private String updateBy;

    private Integer permitStatus;

    private String contactPersonName;

    private static final long serialVersionUID = 1L;

    public Integer getAdvertisementId() {
        return advertisementId;
    }

    public Advertisement withAdvertisementId(Integer advertisementId) {
        this.setAdvertisementId(advertisementId);
        return this;
    }

    public void setAdvertisementId(Integer advertisementId) {
        this.advertisementId = advertisementId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public Advertisement withCompanyName(String companyName) {
        this.setCompanyName(companyName);
        return this;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    public String getPhone() {
        return phone;
    }

    public Advertisement withPhone(String phone) {
        this.setPhone(phone);
        return this;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getBanner() {
        return banner;
    }

    public Advertisement withBanner(String banner) {
        this.setBanner(banner);
        return this;
    }

    public void setBanner(String banner) {
        this.banner = banner == null ? null : banner.trim();
    }

    public Integer getAdvertisementPutting() {
        return advertisementPutting;
    }

    public Advertisement withAdvertisementPutting(Integer advertisementPutting) {
        this.setAdvertisementPutting(advertisementPutting);
        return this;
    }

    public void setAdvertisementPutting(Integer advertisementPutting) {
        this.advertisementPutting = advertisementPutting;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public Advertisement withCreateTime(Date createTime) {
        this.setCreateTime(createTime);
        return this;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public Advertisement withUpdateTime(Date updateTime) {
        this.setUpdateTime(updateTime);
        return this;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public Advertisement withBeginTime(Date beginTime) {
        this.setBeginTime(beginTime);
        return this;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public Advertisement withEndTime(Date endTime) {
        this.setEndTime(endTime);
        return this;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getDeleteStatus() {
        return deleteStatus;
    }

    public Advertisement withDeleteStatus(Integer deleteStatus) {
        this.setDeleteStatus(deleteStatus);
        return this;
    }

    public void setDeleteStatus(Integer deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

    public String getCreateBy() {
        return createBy;
    }

    public Advertisement withCreateBy(String createBy) {
        this.setCreateBy(createBy);
        return this;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public Advertisement withUpdateBy(String updateBy) {
        this.setUpdateBy(updateBy);
        return this;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

    public Integer getPermitStatus() {
        return permitStatus;
    }

    public Advertisement withPermitStatus(Integer permitStatus) {
        this.setPermitStatus(permitStatus);
        return this;
    }

    public void setPermitStatus(Integer permitStatus) {
        this.permitStatus = permitStatus;
    }

    public String getContactPersonName() {
        return contactPersonName;
    }

    public Advertisement withContactPersonName(String contactPersonName) {
        this.setContactPersonName(contactPersonName);
        return this;
    }

    public void setContactPersonName(String contactPersonName) {
        this.contactPersonName = contactPersonName == null ? null : contactPersonName.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", advertisementId=").append(advertisementId);
        sb.append(", companyName=").append(companyName);
        sb.append(", phone=").append(phone);
        sb.append(", banner=").append(banner);
        sb.append(", advertisementPutting=").append(advertisementPutting);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", beginTime=").append(beginTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", deleteStatus=").append(deleteStatus);
        sb.append(", createBy=").append(createBy);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", permitStatus=").append(permitStatus);
        sb.append(", contactPersonName=").append(contactPersonName);
        sb.append("]");
        return sb.toString();
    }
}